home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / widget / r3winlis.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  3.2 KB  |  123 lines

  1.  
  2. // JavaScript wrapper for r3winlis.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_WINLIST_H = 1;
  7. include("oops/r3model.js")
  8.  
  9.  
  10. var R3CLID_WINLIST = 89;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Create a new view window. If p2 is not given, view model for the
  16. //      view window is fetched from the view model cache (managed by the winlist).
  17. // Returns: Object, view window or null
  18. // p1: Object, parent window
  19. // p2: Object, view model (r3vmod.h).
  20. // p3: Boolean, sub window    
  21.  
  22. R3WLIM_NEWVIEW = 89000;
  23.  
  24. function mR3WLIM_NEWVIEW(p1, p2, p3) {
  25.   return R3ToJS(  DoA3(this.r3obj, 89000, p1, R3TID_OBJECT, 0, p2, R3TID_OBJECT, 0, p3, R3TID_BOOLEAN, 0));
  26. }
  27.  
  28. // Description: Enumerate all view windows. Calls the given callback object as R3DoA3(callbackobj, callbackmth, model, view,
  29. //      p3);
  30. // p1: Object, callback object
  31. // p2: Integer, callback method
  32. // p3: Object, data    
  33.  
  34. R3WLIM_ENUMVIEWS = 89001;
  35.  
  36. function mR3WLIM_ENUMVIEWS(p1, p2, p3) {
  37.   DoA3(this.r3obj, 89001, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, 0, p3, R3TID_OBJECT, 0);
  38. }
  39.  
  40. // Description: Fetch the current view model.
  41. // Returns: Object, current view model
  42.  
  43. R3WLIM_GETCURRENTVIEW = 89002;
  44.  
  45. function mR3WLIM_GETCURRENTVIEW() {
  46.   return R3ToJS(  DoA(this.r3obj, 89002, 0, R3TID_INTEGER, 0));
  47. }
  48.  
  49.  
  50. R3WLIM_GETVIEW = 89005;
  51.  
  52. function mR3WLIM_GETVIEW() {
  53.   DoA(this.r3obj, 89005, 0, R3TID_INTEGER, 0);
  54. }
  55.  
  56. // Description: Create a new view model or add an existing to the list. If p3
  57. //      is not given, a new view model is created.
  58. // Returns: Object, view model
  59. // p1: Boolean, is set makes the object name unique in the list.
  60. // p3: Object, view model or NULL if creating a new view model    
  61.  
  62. R3WLIM_NEWVIEWMODEL = 89006;
  63.  
  64. function mR3WLIM_NEWVIEWMODEL(p1, p3) {
  65.   return R3ToJS(  DoA2(this.r3obj, 89006, p1, R3TID_BOOLEAN, 0, p3, R3TID_OBJECT, 0));
  66. }
  67.  
  68.  
  69.  
  70.  
  71. R3WLIA_List = 89500;
  72. function GetR3WLIA_List() {
  73.   return R3Get(this.r3obj, R3WLIA_List, R3TID_LIST, R3TNF_ARRAY); 
  74. }
  75.  
  76. R3WLIA_Parent = 89501;
  77. function SetR3WLIA_Parent(value) {
  78.   R3Set(this.r3obj, R3WLIA_Parent, value, R3TID_OBJECT, 0); 
  79. }
  80.  
  81. R3WLIA_UserData = 89504;
  82. function SetR3WLIA_UserData(value) {
  83.   R3Set(this.r3obj, R3WLIA_UserData, value, R3TID_OBJECT, 0); 
  84. }
  85.  
  86. function GetR3WLIA_UserData() {
  87.   return R3ToJS(R3Get(this.r3obj, R3WLIA_UserData, R3TID_OBJECT, 0)); 
  88. }
  89.  
  90. R3WLIA_UVView = 89508;
  91. function SetR3WLIA_UVView(value) {
  92.   R3Set(this.r3obj, R3WLIA_UVView, value, R3TID_BOOLEAN, 0); 
  93. }
  94.  
  95. function GetR3WLIA_UVView() {
  96.   return R3Get(this.r3obj, R3WLIA_UVView, R3TID_BOOLEAN, 0); 
  97. }
  98.  
  99.  
  100.  
  101. function r3Winlist () { 
  102.    this.base = r3God;
  103.    if(arguments.length) {
  104.       this.base(R3CLID_WINLIST, arguments);
  105.    }
  106.    // Methods
  107.    this.NEWVIEW=mR3WLIM_NEWVIEW;
  108.    this.ENUMVIEWS=mR3WLIM_ENUMVIEWS;
  109.    this.GETCURRENTVIEW=mR3WLIM_GETCURRENTVIEW;
  110.    this.GETVIEW=mR3WLIM_GETVIEW;
  111.    this.NEWVIEWMODEL=mR3WLIM_NEWVIEWMODEL;
  112.  
  113.    // Attributes
  114.    this.GetList=GetR3WLIA_List;
  115.    this.SetParent=SetR3WLIA_Parent;
  116.    this.GetUserData=GetR3WLIA_UserData;
  117.    this.SetUserData=SetR3WLIA_UserData;
  118.    this.GetUVView=GetR3WLIA_UVView;
  119.    this.SetUVView=SetR3WLIA_UVView;
  120. }
  121.  
  122. r3Winlist.prototype=new r3Model;
  123. // r3winlis.h_H